﻿<!DOCTYPE html>
<!--法律法规--管理制度查询-->
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="/static/js/common.js"></script>

    <title></title>
    <style>
        .xxxel-input__inner {
            width: 110px;
        }
    </style>
</head>

<body>
    
<div id="app" v-cloak>   
        <el-form label-position="right" ref="form" :inline="true" :model="formInline" class="demo-form-inline"
            size="mini" style="margin-bottom: 15px;">
            <el-row>
                <el-col class="head-tool">
                    
<div class="new_title fl"><strong><img src="/static/images/icon1.png" />管理制度查询列表</strong></div>
                    <span>
                        <btn :text="col.btnSelect" imgsrc="/static/images/search.png" linetype="3" @click="onSubmit">
                        </btn>
                        <btn-export-list url="/api/FL_System/export"  :forminline="this.formInline" linetype="4"></btn-export-list>
                    </span>
                </el-col>
            </el-row>

            <el-row class="popupW100">
                <!--工厂组件-->
                <list-factorys @change="factoryChange" v-model="formInline.model.createFactory"></list-factorys>
                <el-col :xs="8" :sm="8" :md="8" :lg="6" :xl="6">
                    <div class="elst-select-mini">
                        <el-form-item>
                            <el-input v-model="formInline.model.MS_InstitutionName"
                                      :placeholder="ManagementSystem.MS_InstitutionName" size="mini">
                                <template slot="prepend">
                                    {{ManagementSystem.MS_InstitutionName+mark.m}}
                                </template>
                            </el-input>
                        </el-form-item>
                    </div>
                </el-col>

                <!-- <el-col :xs="8" :sm="8" :md="8" :lg="6" :xl="6">
        <div class="elst-select-mini">
            <el-form-item>
                <el-input v-model="formInline.model.MS_CheckPerson"
                    :placeholder="ManagementSystem.MS_CheckPerson" size="mini">
                    <template slot="prepend">
                        {{ManagementSystem.MS_CheckPerson+mark.m}}
                    </template>
                </el-input>
            </el-form-item>
        </div>
    </el-col> -->
                <!--第一行第一列【文件级别】-->
                <el-col :xs="8" :sm="8" :md="8" :lg="6" :xl="6">
                    <div class="elst-select-mini">
                        <el-form-item>
                            <el-input size="mini">
                                <template slot="prepend">
                                    {{ManagementSystem.MS_Sort+mark.m}}
                                </template>
                                <el-select @visible-change="visibleChange" v-model="formInline.model.FileLeve" :placeholder="ManagementSystem.MS_Sort" slot="suffix">
                                    <el-option label="请选择" value=""></el-option>
                                    <el-option v-for="item in FileLevel" :label="item.fileLeve" :value="item.id">
                                    </el-option>
                                </el-select>

                            </el-input>
                        </el-form-item>
                    </div>
                </el-col>
                <el-col :xs="8" :sm="8" :md="8" :lg="6" :xl="6">
                    <div class="elst-select-mini">
                        <el-form-item>
                            <el-input v-model="formInline.model.MS_Mark" :placeholder="ManagementSystem.MS_Mark"
                                      size="mini">
                                <template slot="prepend">
                                    {{ManagementSystem.MS_Mark+mark.m}}
                                </template>
                            </el-input>
                        </el-form-item>
                    </div>
                </el-col>

                <!--<el-col :span="12">
        <el-form-item :label="ManagementSystem.MS_CheckDate+mark.m" class="inputTextarea">
            <el-date-picker v-model="formInline.model.MS_CheckDateBegin" type="date" style="width:120px;"
                            placeholder="选择日期">
            </el-date-picker>
        </el-form-item>


        <el-form-item :label="ManagementSystem.MS_HorizontalLine" class="inputTextarea">
            <el-date-picker v-model="formInline.model.MS_CheckDateEnd" type="date" style="width:120px;"
                            placeholder="选择日期">
            </el-date-picker>
        </el-form-item>

    </el-col>-->


                <el-col :xs="8" :sm="8" :md="8" :lg="6" :xl="6">
                    <div class="elst-select-mini">
                        <el-form-item>
                            <el-input size="mini">
                                <template slot="prepend">
                                    {{ManagementSystem.MS_ReviewDate+'开始'+mark.m}}
                                </template>
                                <el-date-picker v-model="formInline.model.MS_CheckDateBegin" type="date" slot="suffix"
                                                size="mini" placeholder="选择日期">
                                </el-date-picker>

                            </el-input>
                        </el-form-item>
                    </div>
                </el-col>


                <el-col :xs="8" :sm="8" :md="8" :lg="6" :xl="6">
                    <div class="elst-select-mini">
                        <el-form-item>
                            <el-input size="mini">
                                <template slot="prepend">
                                    {{ManagementSystem.MS_ReviewDate+'结束'+mark.m}}
                                </template>
                                <el-date-picker v-model="formInline.model.MS_CheckDateEnd" type="date" slot="suffix"
                                                size="mini" placeholder="选择日期">
                                </el-date-picker>
                            </el-input>
                        </el-form-item>
                    </div>
                </el-col>




                <!--<el-col :span="10">
        <el-form-item :label="ManagementSystem.MS_CheckDate+mark.m" class="inputTextarea">
            <el-date-picker v-model="formInline.model.MS_CheckDateBegin"
                            type="daterange"
                            range-separator="至"
                            start-placeholder="开始日期"
                            end-placeholder="结束日期">
            </el-date-picker>
        </el-form-item>
    </el-col>-->
                <!--<el-col :xs="24" :sm="12" :md="12" :lg="6" :xl="6">
        <el-form-item :label="CategoryManagementList0529.CM_ClassName+mark.m" prop="CM_ClassName" class="redItem">
            <el-input type="text" v-model="formInline.model.aaa" autocomplete="off" style="width:200px;margin-left:40px;"></el-input>
        </el-form-item>
    </el-col>-->


            </el-row>

        </el-form>

        <!--表格开始-->
        <el-table stripe ref="table" :data="ListItem.tableData" :row-key="getRowKeys" :height="ListItem.tableHeight"
                  border @selection-change="handleSelectionChange" row-style="height:10px" style="width: 100%;">
            <!--<el-table-column type="selection" style="padding-top: 0px;padding-bottom: 0px;" align="center" width="55"
                             :reserve-selection="true">
            </el-table-column>-->
            <el-table-column type="index" :label="LawRegulationsTable.id" show-overflow-tooltip="true" width="50" :index="indexMethod"></el-table-column>
            <el-table-column prop="mS_InstitutionName" :label="ManagementSystem.MS_InstitutionName" min-width="200"
                             show-overflow-tooltip="true">
                <template slot-scope="scope">
                    <el-button type="text" @click="label_click('xz',scope.row.id)">
                        {{scope.row.mS_InstitutionName}}
                    </el-button>
                </template>
            </el-table-column>
            <el-table-column prop="mS_FileNo" :label="ManagementSystem.MS_FileNo" min-width="150"
                             show-overflow-tooltip="true">
            </el-table-column>
            <el-table-column prop="mark01" :label="ManagementSystem.MS_Sort" min-width="150"
                             show-overflow-tooltip="true">
            </el-table-column>
            <el-table-column prop="mark03" :label="ManagementSystem.Department" min-width="120"
                             show-overflow-tooltip="true">
            </el-table-column>
            <el-table-column prop="mS_ImplementationDate" width="100" :label="ManagementSystem.MS_ImplementationDate"
                             show-overflow-tooltip="true" :formatter="myformatDate">
            </el-table-column>

            <el-table-column prop="mS_ReviewCycle" width="100" :label="ManagementSystem.Dycle" show-overflow-tooltip="true">
            </el-table-column>

            <el-table-column prop="mS_ReviewDate" width="100" :label="ManagementSystem.MS_ReviewDate"
                             show-overflow-tooltip="true" :formatter="myformatDate">
            </el-table-column>

            <!--<el-table-column prop="MS_RelevantDepartments"
                     :label="ManagementSystem.MS_RelevantDepartments" show-overflow-tooltip="true">
    </el-table-column>-->

            <!--<el-table-column prop="mS_Departments" :label="ManagementSystem.MS_Departments" width="100" v-if="false">
            </el-table-column>-->

            <!-- <el-table-column prop="MS_State" :label="ManagementSystem.MS_State" width="100">
    </el-table-column> -->
            <!--审核日期赋空-->
            <!-- <el-table-column prop="" :label="ManagementSystem.MS_CheckDate" width="100">
    </el-table-column> -->

            <el-table-column prop="mS_RevisionTime" width="100" :label="ManagementSystem.MS_RevisionDate"  show-overflow-tooltip="true" :formatter="myformatDate">
            </el-table-column>

            <el-table-column prop="mS_Mark" :label="ManagementSystem.MS_Mark" show-overflow-tooltip="true">
            </el-table-column>


            <!-- <el-table-column width="53" prop="update" :label="col.btnUpdate" fixed="right">
        <template slot-scope="scope">
            <button type="button" class="elst-bt-xg" @click=UserInput('xg',scope.row.id)>
                <i class="el-icon-edit"></i>
            </button>
        </template>
    </el-table-column> -->

        </el-table>
        <!--表格结束-->
        <!--分页开始-->
        <el-row type="flex" justify="end">


            <el-pagination ref="page" @size-change="handleSizeChange" @current-change="handleCurrentChange"
                :current-page="ListItem.currentPage" :page-sizes="ListItem.pagesizes" :page-size="ListItem.pagesize"
                :layout="ListItem.layout" :total="ListItem.total">
            </el-pagination>

        </el-row>
        <!--分页结束-->
        <el-dialog title="管理制度" :visible.sync="ListItem.dialogVisible" @close='closeDialog' width="80%" height="80%"
            top="10vh" fullscreen="true">
            <iframe ref="iframe" :src="ListItem.InputUrl" style="height:95%;width:100%" frameborder="0"></iframe>
        </el-dialog>

    </div>
    <script type="text/javascript">
        var app = new Vue({
            el: '#app',
            data: {
                //表单内容
                ListItem: ListItem,
                FileLevel: [],
                formInline: {
                    model: { FL_SystemFileLevel: { FileLeve: "" }},
                    offset: 0,
                    limit: 10
                }
            },
            mounted: function () {

                // console.log(CategoryManagementList0529);
                //console.log(CategoryManagementList0529.CM_Id);
                //console.log(CategoryManagementList0529.CM_ClassName);
                //console.log(CategoryManagementList0529.CM_Person);
                //console.log(CategoryManagementList0529.CM_Time);
                //console.log(CategoryManagementList0529.CM_Mark);
                //初始化数据

               // this.GetPageData(1);
                //列表高度自适应
                tablehigh(this);
                this.GetLevelData();
            },
            methods: {
                //解決edge下select bug
                visibleChange: function (isVisible) {
                    visibleChange(isVisible)
                },
                factoryChange: function () {
                    //var aa = this.formInline.model.createFactory;
                    this.GetPageData(1);
                },
                indexMethod: function (index) {
                    return (this.ListItem.currentPage - 1) * this.ListItem.pagesize + index + 1;
                },
                //关闭Dialog 回调
                closeDialog: function () { closeDialog(this); },
                //删除方法
                onDelete: function () { onDelete(this, '/api/ManagementSystem/DeleteMuti'); },
                //列表选择触发
                handleSelectionChange: function (val) { handleSelectionChange(this, val); },
                //Dialog展示
                UserInput: function (val, id) { DialogShow(this, val, "ManagementSystemInput.html", id); },
                //获取分页数据
                GetPageData: function (currentIndex) {
                    GetPageData(this, currentIndex, '/api/FL_System/GetList')
                },


                //查询方法
                onSubmit: function () { onSubmit(this); },
                //pagesize改变 触发方法
                handleSizeChange: function (val) { handleSizeChange(this, val); },
                //跳页触发方法
                handleCurrentChange: function (val) { handleCurrentChange(this, val); },

                //导出--暂时此提示--之后根官标实现
                //FileExcel: function () { alert("导出成功") },
                FileExcel: function () {
                    myAjax("post", this, '/api/ManagementSystem/export', null,
                        function (response) {
                            console.log(response);
                            if (response.result == "Success") {
                                showMessage(response.message, 'success');
                            }
                            else {
                                showMessage(response.message, 'fail');
                            }

                        });
                },
                //点击表格中数据发生方法
                label_click: function (val, id) { DialogShow(this, val, "ManagementSystemInputDetails.html", id); },
                GetLevelData: function () {
                    var mythis = this;
                    myAjax("post", mythis, '/api/FL_SystemFileLevel/GetList', { model: {}, offset: 0, limit: 10 }, function (response) {
                        mythis.FileLevel = response.data.pageData
                    });
                },

            }


        });
    </script>
</body>

</html>